package MyArrayList;

public class MyArrayListTest {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList(5);
        list.add("A");
        System.out.println(list.size());
        list.add("B");
        System.out.println(list.size());
        list.add("C");
        System.out.println(list.size());
        list.add("D");
        System.out.println(list.size());
        list.add("E");
        System.out.println(list.size());
        list.add("F");

        System.out.println(list);
        System.out.println(list.toString());

        System.out.println(list.get(3));

        list.set(3,"JAVA");
        System.out.println(list.toString());

    }
}
